﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zhao.Models.DTO
{
    /// <summary>
    /// 预约场地 接收前端数据
    /// </summary>
    public class ReservationDto
    {
        /// <summary>
        /// 总价格
        /// </summary>
        public decimal totalPrice { get; set; }
        /// <summary>
        /// 用户姓名
        /// </summary>
        public string  userName { get; set; }
        /// <summary>
        /// 手机号码
        /// </summary>
        public string phone { get;set; }
        /// <summary>
        /// 预约的日期 年-月-日
        /// </summary>
        public string displayDate { get; set; }
        /// <summary>
        /// 预约的场地信息
        /// </summary>
        public List<FieldsInfo> infos { get; set; }
        /// <summary>
        /// 订单状态
        /// </summary>
        public short status { get; set; }
    }

    /// <summary>
    /// 预约的场地信息
    /// </summary>
    public class FieldsInfo
    {
        /// <summary>
        /// 场地id
        /// </summary>
        public int  fId { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }

        public decimal Price { get; set; }
        public int? OrderId { get; set; }
    }
}
